﻿using System;
using System.Web.UI;
using Ext.Net;

namespace ERP.Page
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
        protected void btnExport_Click(object sender, DirectEventArgs e)
        {
            this.Window1.LoadContent("Accounting.aspx");
            this.Window1.Show();
            //var _clsGetReport = new BllReportSell();
            //var _clsGetServerUpload = new BLLsaddicServerUpload();
            //var _dtGetServerUpload = _clsGetServerUpload.GetServerUpload();
            //var _dtGetReport = _clsGetReport.GetReportProposed(80);
            //if (_dtGetReport != null && _dtGetReport.Rows.Count > 0)
            //{

            //    if (_dtGetServerUpload != null && _dtGetServerUpload.Rows.Count > 0)
            //    {
            //        LibGlobal.Export.ExcelExport(_dtGetReport,
            //            Server.MapPath(_dtGetServerUpload.Rows[5]["Path_Download"].ToString()),
            //            Server.MapPath(_dtGetServerUpload.Rows[5]["Path_Upload"].ToString()));
            //        LibGlobal.Export.DownloadFile(
            //            _dtGetServerUpload.Rows[5]["Path_Download"].ToString());
            //    }
            //}
        }
    }
}